package com.itheima_01.day06;

public class TwoArraySum {
    public static void main(String[] args) {
        double[][] arr={{12.3,23.4,545.3},{45.6,45.9,34.8},{34.6,34.6}};
        double sum2=0;
        for (int i = 0; i < arr.length; i++) {
            double sum=0;
            double[] ywsz=arr[i];
            for (int j = 0; j < ywsz.length; j++) {
                sum+=ywsz[j];
                sum2+=ywsz[j];
            }
            System.out.println("第"+i+"个数组的和为："+sum);
        }
        System.out.println("季度收益总和为："+sum2);
    }
}
